<!--#include file="CheckSession.asp"-->
<!--#include file="../inc/PublicFun.Asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
    <title>��̨����</title>
    <link href="css/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<%

strAction = Request("action")
	strId = Request("Id")
	If strAction = "s" then
			
		t1 = trim(request . Form("t1"))
		t2 = trim(request . Form("t2"))
		t3 = trim(request . Form("t3"))
		t4 = trim(request . Form("t4"))
		t5 = trim(request . Form("t5"))
		t6 = trim(request . Form("t6"))
		t7 = trim(request . Form("t7"))
		strAlert = "�޸ĳɹ�"
	
		Set Rs = Server . CreateObject("Adodb.RecordSet")
		If strId = "" Then
			Sql = "Select * from info1"
		Else
			Sql = "Select * from info1 where Id=" & strId & ""
		End If
    Rs . open Sql,Conn,1,3
			If strId = "" Then
				Rs . AddNew
				strAlert = "��ӳɹ�"
			End If
Rs("t1") = t1
Rs("t2") = t2
				Rs("t3") = t3
				Rs("t4") = t4
				Rs("t5") = t5
				Rs("t6") = t6
				Rs("t7") = t7
				Rs("Times") = Now()
		Rs . Update
		Rs . Close()
		Set Rs = Nothing
		Response . Write("<script language='javascript'>alert('" & strAlert & "');window.location.href='Admin_InfoAdd1.Asp'</script>")
	End If

If strId <> "" Then
		Set Rs = Server . CreateObject("Adodb.RecordSet")
		Sql = "Select * from info1 where Id=" & strId & ""
		Rs . open Sql,Conn,1,3
			If Not(Rs . Eof And Rs . Eof) then
				t1 = Rs("t1")
				t2 = Rs("t2")
				t3 = Rs("t3")
				t4 = Rs("t4")
				t5 = Rs("t5")
				t6 = Rs("t6")
				t7 = Rs("t7")
			End If
    Rs . Close()
Set Rs = Nothing
	End If
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td height="50" align="center" class="title">�����Ϣ</td>
    </tr>
</table>
<div>&nbsp;</div>
<table width="100%" border="1" align="center" cellpadding="5" cellspacing="0" style="border-collapse:collapse">
    <form action="?action=s&Id=<%= strId %>" method="post" name="form1">
        <tr>
            <td width="150" align="right" nowrap>����</td>
            <td nowrap><input name="t1" id="t1" class="inputtext" value="<%= t1 %>" type="text" style="width:200px">
            </td>
        </tr>
        <tr>
            <td width="150" align="right" nowrap>Ԥ���1��</td>
            <td nowrap><input name="t2" class="inputtext" value="<%= t2 %>" type="text" style="width:200px"></td>
        </tr>
        <tr>
            <td width="150" align="right" nowrap>Ԥ���2��</td>
            <td nowrap><input name="t7" class="inputtext" value="<%= t7 %>" type="text" style="width:200px"></td>
        </tr>
        <tr>
            <td align="right" nowrap>����1��</td>
            <td nowrap><input name="t3" class="inputtext" value="<%= t3 %>" type="text" style="width:200px"></td>
        </tr>
        <tr>
            <td align="right" nowrap>����2��</td>
            <td nowrap><input name="t4" class="inputtext" value="<%= t4 %>" type="text" style="width:200px"></td>
        </tr>
        <tr>
            <td align="right" nowrap>���3��</td>
            <td nowrap><input name="t5" class="inputtext" value="<%= t5 %>" type="text" style="width:200px"></td>
        </tr>
        <tr>
            <td align="right" nowrap>Ԥ����</td>
            <td nowrap>
                <select name="t6" style="width:200px">
                    <option value="1">׼</option>
                    <option value="0">��</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td><input name="submit1" type="submit" class="button" value="ȷ���ύ">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input name="reset" type="reset" class="button" value="ȡ����д"></td>
        </tr>
    </form>
</table>
</body>
</html>
